﻿using Pay.DTO;
using System.Collections.Generic;

namespace Pay.IService {
	/// <summary>
	/// 角色接口
	/// </summary>
	public interface IRoleService {
		/// <summary>
		/// 查询角色
		/// </summary>
		/// <param name="company_id">空表示平台，有值表示公司</param>
		/// <param name="name"></param>
		/// <returns></returns>
		IEnumerable<role_dto> GetAll(string name = "");
		/// <summary>
		/// 返回角色操作
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		role_dto Get(long id);
		/// <summary>
		/// 增加角色操作
		/// </summary>
		/// <param name="dto"></param>
		/// <returns></returns>
		int Add(role_dto dto);
		/// <summary>
		/// 更新角色操作
		/// </summary>
		/// <param name="dto"></param>
		/// <returns></returns>
		int Update(role_dto dto);
		/// <summary>
		/// 删除角色操作
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		int Delete(long id);
	}
}